package com.information.manage.basic.audit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.information.manage.basic.audit.model.entity.AuditTaskDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface AuditTaskMapper extends BaseMapper<AuditTaskDO> {

    public List<AuditTaskDO> getByModelIdAndState(Long modelId, Integer status, Integer limit);

    Page<AuditTaskDO> findAuditTasksApprovedPage(Page page, String auditType, String mainId, String name, Integer status
            , List<Integer> statusList, Date startTime, Date endTime, String userId, List<String> roleIds);

    Page<AuditTaskDO> findAuditTasksProcessPage(Page page, String auditType, String mainId, String name, Integer status
            , List<Integer> statusList, Date startTime, Date endTime, String userId, List<String> roleIds);

}
